import request from '@/http/request'
// 新增
export const $entsAdd = (data)=>{
   return request.request({url:'/api/sysEnts/add',method:'post',data:data},true,true,true)
}
// 详情
export const $getEntBySysType = (entId, sysType) => {
    return request.request({
      url: '/api/sysEnts/bySysType',
      method: 'GET',
      params: { entId: entId, sysType: sysType }
    })
  }

  // 修改接口
export const $updateById = (bizId, data) => {
    return request.request({ 
        url: '/api/sysEnts' + '/' + bizId, 
        method: 'PUT', 
        data: data }, true, true, false)
  }

/** 获取权限树状结构图**/
export function $getEntTree (sysType) {
  return request.request({ url: '/api/sysEnts/showTree?sysType=' + sysType, method: 'GET' })
}


  // // 通用修改接口/api/sysEnts
  // updateById: (url, bizId, data) => {
  //   return request.request({ url: url + '/' + bizId, method: 'PUT', data: data }, true, true, true)
  // },